package base.quote;

public class Main {

	public static void main(String[] args) {
		
		BeanB b1 = new BeanB(1,1);
		BeanB b2 = new BeanB(0,0);
		b2 = b1;
		b2.setId(2);
		System.out.println(b1.getId());//2
		
		BeanB b3 = new BeanB(1,1);
		BeanB b4 = new BeanB(0,0);
		b4 = b3;
		b4 = BeanB.changeB(2);
		System.out.println(b3.getB());//1
		
	}

}
